<include file="public@header"/>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Mail/add')}">添加站点邮箱</a></li>
        <li><a href="{:url('Mail/mailboxList')}">我的邮箱</a></li>
    </ul>
    <br>
    <h4><strong>更新邮箱</strong></h4>
    <form action="{:url('Mail/update')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-5">
                <table class="table table-bordered">
                    <input hidden type="text" name="id" value="{$mailbox.id}">
                    <tr>
                        <th><span class="form-required">*</span>邮箱账号</th>
                        <td>
                            <input class="form-control" type="text" name="mailbox_name" required
                                   placeholder="请输入邮箱账号" value="{$mailbox.mailbox}">
                        </td>
                    </tr>
                    <tr>
                        <th><span class="form-required">*</span>邮箱密码</th>
                        <td>
                            <input class="form-control" type="text" name="mailbox_password" required
                                   placeholder="请输入邮箱密码" value="{$mailbox.mailbox_password}">
                        </td>
                    </tr>
                    <tr>
                        <th><span class="form-required">*</span>邮箱类型</th>
                        <td>
                            <input class="form-control" type="text" name="mailbox_type" required
                                   placeholder="qq or gmail" value="{$mailbox.mailbox_type}">
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <button type="submit" class="btn btn-primary">更新</button>
    </form>
</div>